Skip to content

outbound-networking refactoring #3168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 11, 2025
Merged

outbound-networking refactoring #3168

merged 2 commits into from
Aug 11, 2025

Conversation

lann
Copy link
Collaborator

@lann lann commented Jun 18, 2025

  • Replace HostConfig::List(Vec<String>) with HostConfig::Literal(url::Host)
    • List was only ever exactly one item
    • url::Host provides validation and normalization
  • Add HostConfig::literal(host)
  • Reorganize error handling a bit
    • This does change some validation error messages, making them more consistent but also introduces some use of anyhow Context which is more verbose
  • Add AllowedHostConfig::is_for_service_chaining, replacing logic in spin-loader

@lann lann force-pushed the allowed-hosts-refactoring branch from 6e39bb7 to 7e119db Compare June 18, 2025 16:59
@lann lann force-pushed the allowed-hosts-refactoring branch from 7e119db to 8cc4346 Compare August 11, 2025 19:06
lann added 2 commits August 11, 2025 15:08
Plus a couple of collateral error tweaks.

Signed-off-by: Lann Martin <[email protected]>
- Replace HostConfig::List(Vec<String>) with HostConfig::Literal(url::Host)
- Reorganize error handling for consistency
- Move logic from spin-loader to AllowedHostConfig::is_for_service_chaining

Signed-off-by: Lann Martin <[email protected]>
@lann lann force-pushed the allowed-hosts-refactoring branch from 8cc4346 to 940574c Compare August 11, 2025 19:08
@lann lann changed the title outbound-networking (mostly) refactoring outbound-networking refactoring Aug 11, 2025
@lann lann enabled auto-merge August 11, 2025 19:09
@lann lann merged commit 703252f into main Aug 11, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants